package cn.stylefeng.guns.goodsdetail.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * goods_detail
 *
 * @author aria
 * @date 2021/02/20 20:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GoodsDetailParam extends BaseParam {

    /**
     * 配图编号
     */
    @NotNull(message = "配图编号不能为空",groups = {edit.class})
    private Integer descId;

    /**
     * 商品编号
     */
    @NotNull(message = "商品编号不能为空",groups = {add.class,edit.class})
    private Integer goodsId;

    /**
     * 图片地址
     */
    @NotNull(message = "图片地址不能为空",groups = {add.class,edit.class})
    private String descUrl;

}
